<?
	require_once("../cBasic/950cons.php");
	$recid=$_GET['recid'];
	$output=array();
	
	$skillcount=0;
	$sQuery="select  skillID from req_skill where ReqID=".$recid." and Status=1";
	$rResult = mysql_query( $sQuery, $con ) or die(mysql_error());
	while ( $aRow = mysql_fetch_array( $rResult ) ){
		$skillcount++;
	}
		
	$empnum=0;
	$sQuery="select  EmpAmount from request where ReqID=".$recid;
	$rResult = mysql_query( $sQuery, $con ) or die(mysql_error());
	while ( $aRow = mysql_fetch_array( $rResult ) ){
		$empnum=$aRow['EmpAmount'];
	}
	mysql_close($con);
	
	$output[]=$skillcount;
	$output[]=$empnum;
	echo json_encode($output);
?>